#ifndef __OLED_H
#define __OLED_H

#include "stm8s.h"

#define OLED_TIMEOUT   0x32
#define OLED_ADDR      0x78 

typedef struct
{
  FunctionalState flag;
  uint16_t timer;
  uint8_t err;
}type_oled;

void oled_init(void);
void oled_fun(void);
void oled_timer(void);

#endif